#include<stdio.h>
int* twoSum(int* numbers, int numbersLen, int target, int* returnSize )
{
	int arr[2]={0};
	for(int i=0;i<numbersLen;i++)
	{
		for(int j=0;j<numbersLen;j++)
		{
			if((numbers[i]+numbers[j]==target)&&(i<j))
			{
				arr[0]=i+1;
				arr[1]=j+1;
            }
		}
    }
    return arr;
}
int main()
{
	int numbers[3]={3,2,4},numbersLen=sizeof(numbers)/sizeof(numbers[0]);
	int returnSize[2]={0};
	int target=6;
	int *p=twoSum(numbers,numbersLen,target,returnSize);
	printf("[%d %d]",*p,*(p+1));
	return 0;
}
